home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / ps40sdk / examples / export / outbound / outbound.mak < prev    next >
Encoding:
Makefile  |  1995-07-17  |  1.8 KB  |  84 lines

  1. #
  2. #       File: DummyExport Plugin Makefile
  3. # DummyExport.8BE
  4. #
  5.  
  6. TARGET  = DummyExport
  7. UTILDIR = ..\..\Utilities
  8. OBJECTS = ..\DummyExport.obj DummyExportUIWin.obj $(UTILDIR)\WinUtilities.obj $(UTILDIR)\PIUtilities.obj    
  9.  
  10. all: $(TARGET).8BE
  11.  
  12. PSDLLENTRY=DLLInit
  13. TYPE=8BE
  14.  
  15. OS=NT
  16. ENV=WIN32
  17.  
  18. !INCLUDE <$(OS)$(ENV).MAK>
  19.  
  20. .SUFFIXES: .cpp .c
  21.  
  22. INCLUDES = /I.. /I..\..\CIncludes
  23.  
  24. !ifdef nodebug
  25. OPTIM=-Ox -G5
  26. !else
  27. OPTIM=-Zi -Od
  28. !endif
  29.  
  30. COMMON=-nologo -DMSDOS -DMSWindows=1 $(cflags) $(cvars) $(LOCAL_CFLAGS) $(OPTIM) $(INCLUDES)
  31.  
  32. .cpp.obj :
  33.     $(cc) $(COMMON) -Fo$*.obj $*.cpp
  34.  
  35. .c.obj :
  36.     $(cc) $(COMMON) -Fo$*.obj $*.c
  37.  
  38. .rc.res :
  39.     $(rc) $(rcvars) $(INCLUDES) -r -fo$*.res $(cvars) $*.rc
  40.  
  41. .res.rbj :
  42.     cvtres -$(CPU) $*.res -o $*.rbj
  43.  
  44. # Define the dependencies for the RC file.     DummyExport.RC includes PiPL.RSC
  45. $(TARGET).RC: PiPL.RSC
  46.  
  47. # Define the dependencies for PiPL.RSC. PiPL is auto-generated by CnvtPiPL.EXE 
  48. # taking PiPL.TMP as input
  49. PiPL.RSC: PIPL.TMP
  50.     $(UTILDIR)\cnvtpipl PiPL.TMP PiPL.RSC
  51.  
  52. # Define the dependencies for PiPL.TMP. PiPL.TMP is generated by C Pre-Processor 
  53. # taking DummyExport.r as input
  54. PIPL.TMP: ..\$(TARGET).R
  55.     $(cc) $(INCLUDES) /EP /DMSWindows=1 /Tc..\$(TARGET).R > PiPL.TMP
  56.  
  57. clean :
  58.     -del *.obj
  59.     -del *.rbj
  60.     -del *.res
  61.     -del *.err
  62.     -del *.exp
  63.     -del $(TARGET).$(TYPE)
  64.  
  65.  
  66. #  Generate import library (.lib) and export library (.exp)
  67. #  from a module-definition (.def) file for a DLL
  68. $(TARGET).lib $(TARGET).exp : $(TARGET).def
  69.     LIB /out:$(TARGET).lib /machine:$(CPU) $(OBJECTS) /def:$(TARGET).def
  70.  
  71.  
  72. $(TARGET).$(TYPE): $(TARGET).res $(OBJECTS) $(TARGET).exp
  73.     $(link) @<<
  74. $(ldebug)
  75. /dll
  76. /entry:$(PSDLLENTRY)$(DLLENTRY)
  77. /out:$*.$(TYPE)
  78. $(guilibsdll)
  79. $(OBJECTS)
  80. $(TARGET).res  
  81. $(TARGET).exp
  82. <<NOKEEP
  83.  
  84.